﻿using System;

namespace Telex;

static class ArrayExtension
{
    public static ArraySegment<T> AsSegment<T>(this T[] arr, int startIndex, int length)
    {
        return new ArraySegment<T>(arr, startIndex, length);
    }
}
